package com.sc.nft.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.sc.nft.enums.IncomeHierarchyEnum;
import com.sc.nft.enums.IncomeTypeEnum;
import com.sc.nft.enums.MallOrderIncomeTypeEnum;
import com.sc.nft.sup.SuperEntity;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * (sc_mall_order_income)实体类
 *
 * @author Sun
 * @description 由 Mybatisplus Code Generator 创建
 * @since 2023-05-09 14:55:38
 */
@Data
@NoArgsConstructor
@Accessors(chain = true)
@TableName("sc_mall_order_income")
public class MallOrderIncome extends SuperEntity implements Serializable {
    private static final long serialVersionUID = 1L;

    /**
     * 订单id
     */
    private Long orderId;

    /**
     * 收益用户id
     */
    private Long incomeUserId;

    /**
     * 收益用户金额
     */
    private BigDecimal incomeNum;

    /**
     * 失效的收益金额
     */
    private BigDecimal cancelIncomePrice;

    /**
     * 实际收益金额
     */
    private BigDecimal realIncomePrice;

    /**
     * 收益类型
     */
    private IncomeTypeEnum incomeType;

    /**
     * 收益名称
     */
    private String incomeName;

    /**
     * 收益比例
     */
    private BigDecimal incomeProportion;

    /**
     * 0:已失效 1:待到账 2:已到账
     */
    private MallOrderIncomeTypeEnum incomeStatus;

    /**
     * 是否团队结算收益 0:否 1:是
     */
    private Boolean isTeamIncome;

    /**
     * 收益层级       1:直推 2:间推 3:特殊(团队)
     */
    private IncomeHierarchyEnum incomeHierarchy;

    /**
     * 收益层级名称 1:直推 2:间推 3:特殊(团队)
     */
    private String incomeHierarchyName;

    /**
     * 备注
     */
    private String remark;

    /**
     * 收益时间
     */
    private Date incomeTime; 

    /**
     * 奖励基数
     */
    private BigDecimal incomeCardinality;

    /**
     * 是否有效 0:无效 1:有效
     */
    private Boolean isEfficient;

    /**
     * 版权藏品目前会用到,记录下藏品id
     */
    private Long collectionId;

}